<div class="section-title"> <img src="<?=base_url()?>assets/images/news.png" class="news-icon"/> <b><?=$category_name?></b> </div>
<div class="section-content"> 
	<div class="inner-section">
		<br />
		<?php foreach ($article as $a) :?>
		<div class="newsitem">
			<a href="<?=base_url()?>read/<?=$a['stateid']?>/<?=$a['permalink']?>"><h3><?=$a['post_title']?></h3></a>
			<div class="newsinf">
				<p class="newsinfsub">
					<img src="<?=base_url()?>assets/images/date.png"> <?=dateformat('date', $a['datecreate'])?> | 
					<img src="<?=base_url()?>assets/images/time.png"> <?=dateformat('time', $a['datecreate'])?> | 
					<img src="<?=base_url()?>assets/images/user.png"> <?=ucfirst($a['username'])?> | 
					<img src="<?=base_url()?>assets/images/zoom.png"> <?=$a['viewcount']?>
				</p>
			</div>
			<img src="<?=base_url()?>assets/uploads/thumb.php?src=artikel/<?=$a['picture']?>&x=100&y=100" class="pict01"/>
			<div class="newscontent"> 
				<?=cutstring($a['post_content'],350)?>
			</div>
		</div> <br />
		<?php endforeach ?>
	</div>
</div>